package com.demo.ping.utils

import org.junit.jupiter.api.Test
import static org.junit.jupiter.api.Assertions.assertEquals

/**
 *  @author Jofo
 */
class EncryptYamlTest {

    @Test
    void encryptPwd() {
        String account = "postgres"
        String password = "123456"
        String newAccount = CaesarCipher.encrypt(account, 123)
        String newPassword = CaesarCipher.encrypt(password, 123)

        assertEquals("/.23&1\$2", newAccount)
        assertEquals("NOPQRS", newPassword)
    }
}
